package com.smzd.projforge.dao;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;
import com.smzd.projforge.domain.Template;
import com.smzd.projforge.mappers.TemplateMapper;

@Component
public class TemplateDao extends AbstractDao<Template> {
    @Autowired
    private TemplateMapper mapper;
    
    @Override
    protected IMapper<Template> getMapper() {
        return mapper;
    }

    public List<Template> getAllTemplatesByProjectId(int projectId) {
        return mapper.getAllTemplatesByProjectId(projectId);
    }
}